<template>
  <!-- <div class="app-container"> -->
  <div>
    <!--建筑物概率评估地图模块-->
    <Index v-if="showBool" :dataType="dataType" :form="form"></Index>
  </div>
</template>

<script setup name="buildingProbabilityEconomicLossesMap">
//地图
import Index from '@/map/building/probability/index.vue';

const route = useRoute();
//经济损失-概率评估
const dataType = ref("economicLossesPd");//经济损失-概率评估
const form = ref({});
const showBool = ref(false);
const props = defineProps({
  params: Object
})

onMounted(() => {
  // dataType.value = route.query.type;
  // form.value = {
  //   assessCode:route.query.assessCode,
  //   seismicInputMode:route.query.seismicInputMode,
  //   condition:route.query.condition,
  // };
})
watch(() => props.params, () => {
  const { type, id, assessCode, years,coordinateRange } = props.params;
  dataType.value = type;
  form.value = {
    assessCode,
    years,
    coordinateRange: coordinateRange,
    id
  };
  showBool.value = true;
}, { immediate: true, deep: true })
</script>

<style scoped lang="scss">

</style>